package com.tenyears.test;

import com.tenyears.util.RedisUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试接口
 *
 * @author 十年
 * @date 2025/10/25
 */
@RequestMapping("/test")
@RestController
public class TestController {

    @GetMapping("/redis")
    public void testRedis() {
        RedisUtil.set("123:456:789", "正在进行Redis测试", 1800);

        System.err.println("获取缓存数据：" + RedisUtil.get("123:456:789"));
    }
}
